package com.example.demo.pojo;

import java.io.Serializable;

/**
 * picture_sheet_of_merchandise
 * @author 
 */
public class PictureSheetOfMerchandise implements Serializable {
    /**
     * 商品图片id
     */
    private Integer commoditypicturesid;

    /**
     * 图片地址
     */
    private String pictureaddress;

    /**
     * 商品id
     */
    private Integer goodsid;

    /**
     * 状态1为主展示图，状态2为次展示图，状态3为详情图
     */
    private Integer iss;

    private static final long serialVersionUID = 1L;

    public Integer getCommoditypicturesid() {
        return commoditypicturesid;
    }

    public void setCommoditypicturesid(Integer commoditypicturesid) {
        this.commoditypicturesid = commoditypicturesid;
    }

    public String getPictureaddress() {
        return pictureaddress;
    }

    public void setPictureaddress(String pictureaddress) {
        this.pictureaddress = pictureaddress;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public Integer getIss() {
        return iss;
    }

    public void setIss(Integer iss) {
        this.iss = iss;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PictureSheetOfMerchandise other = (PictureSheetOfMerchandise) that;
        return (this.getCommoditypicturesid() == null ? other.getCommoditypicturesid() == null : this.getCommoditypicturesid().equals(other.getCommoditypicturesid()))
            && (this.getPictureaddress() == null ? other.getPictureaddress() == null : this.getPictureaddress().equals(other.getPictureaddress()))
            && (this.getGoodsid() == null ? other.getGoodsid() == null : this.getGoodsid().equals(other.getGoodsid()))
            && (this.getIss() == null ? other.getIss() == null : this.getIss().equals(other.getIss()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCommoditypicturesid() == null) ? 0 : getCommoditypicturesid().hashCode());
        result = prime * result + ((getPictureaddress() == null) ? 0 : getPictureaddress().hashCode());
        result = prime * result + ((getGoodsid() == null) ? 0 : getGoodsid().hashCode());
        result = prime * result + ((getIss() == null) ? 0 : getIss().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", commoditypicturesid=").append(commoditypicturesid);
        sb.append(", pictureaddress=").append(pictureaddress);
        sb.append(", goodsid=").append(goodsid);
        sb.append(", iss=").append(iss);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}